package com.matt.repository.base;



import com.matt.foundation.DO.ClassListDO;
import com.matt.foundation.DO.TeacherDO;
import com.matt.foundation.query.ClassesQuery;
import com.matt.foundation.vo.WebClassesPageVo;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/6
 * *******************************
 */
public interface ClassesTeacherRepository {

    List<Object[]> findByUserAndArea(String staffId, String areaId);

    List<ClassListDO> findClassesByTeacher(String staffId, String areaId);

    List<ClassListDO> findClassesByDoctor(String staffId, String areaId);

    List<ClassListDO> findClassesByAreaLeader(String staffId, String areaId);

    List<TeacherDO> findByClassesId(String classesId);

    List<WebClassesPageVo> findClassesByCondition(String roleCode, ClassesQuery query);

    Long countClassesByArea(ClassesQuery query);

    Long countClassesByStaff(String roleCode,  ClassesQuery query);

    List<String> findStaffIdsByChildId(String childrenId);
}
